package coupon.controller;


import coupon.service.SkuFullReductionService;
import com.feign.to.SkuReductionTo;
import com.feign.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 商品满减信息(SkuFullReduction)表控制层
 *
 * @author panghu
 * @since 2023-03-05 14:29:42
 */
@RestController
@RequestMapping("coupon/skuFullReduction")
public class SkuFullReductionController {

    @Autowired
    private SkuFullReductionService skuFullReductionService;

    @PostMapping("saveInfo")
    public R saveSkuReduction(@RequestBody SkuReductionTo skuReductionTo) {
        skuFullReductionService.saveSkuReduction(skuReductionTo);
        return R.ok();
    }
}

